package s04;

/**
 * @ClassName Demo05
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:16
 * @ModifyDate 2022/8/14 18:16
 * @Version 1.0
 */
public class Demo05 {
    private static void method(Calculable c) {
        System.out.println(c.calculate(-10));
    }

    public static void main(String[] args) {
        method(i -> Math.abs(i));
    }
}
